Global Const MB_ICONEXCLAMATION = 48 ' Warning message
Global Const MB_ICONINFORMATION = 64 ' Information message
' RGB color constants
Global Const BLUE = &HFF0000
Global Const DK_BLUE = &H800000
Global Const WHITE = &HFFFFFF
Global Const RED = &HFF&
Global Const BLACK = &H0&
Global Const CYAN = &HFFFF00
Global Const DK_CYAN = &H808000
Global Const YELLOW = &HFFFF&
Global Const BROWN = &H8080&
Global Const GREEN = &HFF00&
Global Const DK_GREEN = &H8000&
Global Const MAGENTA = &HFF00FF
' Data type defining an x-y coordinate.
Type tLocation
X As Integer
Y As Integer
End Type
' Data type defining information related to
' a particular golf hole.
Type tHole
FileName As String * 12
Tee As tLocation
Par As Integer
Tips As String
End Type
' The location of the program.
Global AppPath As String
' Constants for 3D Borders
Global Const BORDER_INSET = 0
Global Const BORDER_RAISED = 1
' Functions and constants used to play sounds.
Global Const SND_SYNC = &H0 ' Return when sound ends (the default)
Global Const SND_ASYNC = &H1 ' Return as soon as sound starts
Declare Function sndPlaySound Lib "MMSystem" (ByVal lpsound As String, ByVal FLAG As Integer) As Integer
' Function that returns the color at a particular
' x-y location.
Declare Function GetPixel Lib "GDI" (ByVal hDC As Integer, ByVal X As Integer, ByVal Y As Integer) As Long
' Constant and function used to quickly copy bitmaps.
Global Const SRCCOPY = &HCC0020
Declare Function BitBlt Lib "GDI" (ByVal hDestDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal NWidth As Integer, ByVal nHeight As Integer, ByVal hSrcDC As Integer, ByVal XSrc As Integer, ByVal YSrc As Integer, ByVal dwRop As Long) As Integer